package com.abst;

public abstract class Employee {
    private String name;
    private String workId;
    private String department;
    private double sarary;

    public Employee() {
    }

    public double getSarary() {
        return sarary;
    }

    public void setSarary(double sarary) {
        this.sarary = sarary;
    }

    public Employee(String name, String workId, String department, double sarary) {
        this.name = name;
        this.workId = workId;
        this.department = department;
        this.sarary = sarary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public abstract String showMsg();
}
